package org.agile2soft.nexoma.tapestry.encoder;

import org.agile2soft.nexoma.controller.EntryRegController;
import org.agile2soft.nexoma.entity.EntryReg;
import org.hibernate.SessionFactory;

import br.com.arsmachina.tapestrycrud.hibernate.encoder.HibernateIntegerEncoder;

public class EntryRegEncoder extends HibernateIntegerEncoder<EntryReg> {

    public EntryRegEncoder(SessionFactory sessionFactory,
            EntryRegController controller) {
            super(sessionFactory, controller);
    }
//    public EntryRegEncoder(SessionFactory sessionFactory,
//            EntryRegController controller,
//        PrimaryKeyTypeService primaryKeyTypeService) {
//            super(sessionFactory, controller,primaryKeyTypeService);
//    }


    public String toLabel(EntryReg entry) {
        return String.valueOf(entry.getNumber());
    }

}
